package com.achievement.mappings;

import com.achievement.domain.dto.ReportAuthorDTO;
import com.achievement.domain.dto.ReportDTO;
import com.achievement.domain.entity.ReportAuthorEntity;
import com.achievement.domain.entity.ReportEntity;
import com.achievement.domain.vo.ReportAuthorVO;
import com.achievement.domain.vo.ReportVO;
import org.mapstruct.Mapper;

/**
 * kygladmin ReportMapping
 */

@Mapper(componentModel = "spring")
public interface ReportMapping {

    ReportEntity dto2Entity(ReportDTO dto);

    ReportVO entity2Vo(ReportEntity entity);

    ReportAuthorEntity reportDto2ReportEntity(ReportAuthorDTO reportAuthorDTO);

    ReportAuthorVO authorEntity2Vo(ReportAuthorEntity reportAuthorEntity);
}
